package com.xdk.templatescala.common.response;

/**
 * ResultCode
 *
 * @author jhz
 * @date 2021/6/15
 **/
public enum ResultCode {
    /**
     * 成功的响应码和提示信息
     */
    SUCCESS(200,"成功"),
    /**
     * 失败的响应状态码和提示信息
     */
    FAIL(10000, "操作失败"),
    /**
     * 参数不能为空
     */
    PARAM_NOT_NULL(10001,"参数不能为空"),
    /**
     * 参数不能为空
     */
    SYSTEM_ERROR(10002,"系统错误"),
    /**
     * 参数校验失败
     */
    PARAM_CHECK_FAIL(10003,"参数不合法"),

    /**
     * 工作流重复
     */
    WORKFLOW_REPEAT(10004,"工作流ID重复");

    public final int code;

    public final String msg;

    private ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
